import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import VueRouter from "vue-router";
import VueResource from "vue-resource";
import 'element-ui/lib/theme-chalk/index.css';
import home from "@/components/home/home";
import store from "@/components/store/store";
import search from "@/components/search/search";

Vue.config.productionTip = true;
Vue.use(ElementUI);
Vue.use(VueRouter);
Vue.use(VueResource);


const routes = [
    {path: '/', redirect: '/home'},
    {path: '/home', component: home},
    {path: '/store', component: store},
    {path: '/search', component: search}
];
const router = new VueRouter({
    routes: routes,
    linkActiveClass: 'active'
});
new Vue({
    router,
    render: h => h(App),
}).$mount('#app');
